<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.util.collection.model.HashParams</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.util.collection.model.HashParams";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.util.collection.model.HashParams.html" class="symbol">tango.util.collection.model.HashParams</a></h1>
  
<dl>
<dt class="decl">interface <a class="symbol _interface" name="HashParams" href="./htmlsrc/tango.util.collection.model.HashParams.html#L33" kind="interface" beg="33" end="80">HashParams</a>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#HashParams" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.HashParams.html#L33">#</a></dt>
<dd class="ddef">
<div class="summary">Base interface for hash table based collections.
 Provides common ways of dealing with buckets and threshholds.
 (It would be nice to share some of the code too, but this
 would require multiple inheritance here.)</div>
<p class="sec_header">Author:</p>Doug Lea
 @version 0.93
<p class="bl"/>
 <P> For an introduction to this package see <A HREF="index.html"> Overview </A>.
<dl>
<dt class="decl">int <a class="symbol _variable" name="HashParams.defaultInitialBuckets" href="./htmlsrc/tango.util.collection.model.HashParams.html#L40" kind="variable" beg="40" end="40">defaultInitialBuckets</a>; <span class="attrs">[<span class="prot">public</span>, <span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#HashParams.defaultInitialBuckets" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.HashParams.html#L40">#</a></dt>
<dd class="ddef">
<div class="summary">The default initial number of buckets of a non-empty HT</div></dd>
<dt class="decl">float <a class="symbol _variable" name="HashParams.defaultLoadFactor" href="./htmlsrc/tango.util.collection.model.HashParams.html#L47" kind="variable" beg="47" end="47">defaultLoadFactor</a>; <span class="attrs">[<span class="prot">public</span>, <span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#HashParams.defaultLoadFactor" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.HashParams.html#L47">#</a></dt>
<dd class="ddef">
<div class="summary">The default load factor for a non-empty HT. When the proportion
 of elements per buckets exceeds this, the table is resized.</div></dd>
<dt class="decl">int <a class="symbol _function" name="HashParams.buckets" href="./htmlsrc/tango.util.collection.model.HashParams.html#L53" kind="function" beg="53" end="53">buckets</a><span class="params">()</span>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#HashParams.buckets" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.HashParams.html#L53">#</a></dt>
<dd class="ddef">
<div class="summary">return the current number of hash table buckets</div></dd>
<dt class="decl">void <a class="symbol _function" name="HashParams.buckets:2" href="./htmlsrc/tango.util.collection.model.HashParams.html#L62" kind="function" beg="62" end="62">buckets</a><span class="params">(int <em>newCap</em>)</span>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#HashParams.buckets:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.HashParams.html#L62">#</a></dt>
<dd class="ddef">
<div class="summary">Set the desired number of buckets in the hash table.
 Any value greater than or equal to one is OK.
 if different than current buckets, causes a version change</div>
<p class="sec_header">Throws:</p>IllegalArgumentException if newCap less than 1</dd>
<dt class="decl">float <a class="symbol _function" name="HashParams.thresholdLoadFactor" href="./htmlsrc/tango.util.collection.model.HashParams.html#L71" kind="function" beg="71" end="71">thresholdLoadFactor</a><span class="params">()</span>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#HashParams.thresholdLoadFactor" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.HashParams.html#L71">#</a></dt>
<dd class="ddef">
<div class="summary">Return the current load factor threshold
 The Hash table occasionally checka against the load factor
 resizes itself if it has gone past it.</div></dd>
<dt class="decl">void <a class="symbol _function" name="HashParams.thresholdLoadFactor:2" href="./htmlsrc/tango.util.collection.model.HashParams.html#L79" kind="function" beg="79" end="79">thresholdLoadFactor</a><span class="params">(float <em>desired</em>)</span>; <span class="attrs">[<span class="prot">public</span>]</span> <a title="Permalink to this symbol" href="#HashParams.thresholdLoadFactor:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.util.collection.model.HashParams.html#L79">#</a></dt>
<dd class="ddef">
<div class="summary">Set the current desired load factor. Any value greater than 0 is OK.
 The current load is checked against it, possibly causing resize.</div>
<p class="sec_header">Throws:</p>IllegalArgumentException if desired is 0 or less</dd></dl></dd></dl>
</div>
<div id="footer">
  <p></p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:09 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>